<div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a lay-href="">主页</a>
        <a><cite>系统管理</cite></a>
        <a><cite>操作日志</cite></a>
    </div>
</div>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layuiadmin-card-header-auto">
            <!-- <button class="layui-btn layuiadmin-btn-tags" data-type="add">添加</button> -->
        </div>
        <div class="layui-card-body">
            <table id="layuiadmin-table" lay-filter="layuiadmin-table"></table>
        </div>
    </div>
</div>
<script>
    layui.use(['admin', 'table', 'helper', 'form', 'baseTable'], function () {
        var $           = layui.$
            , admin     = layui.admin
            , setter    = layui.setter
            , view      = layui.view
            , table     = layui.table
            , helper    = layui.helper
            , baseTable = layui.baseTable
            , form      = layui.form;
        var config      = {
            title       : '管理'
            , requestUrl: '/logs'
            , tableCols : [{
                field  : 'id'
                , width: 100
                , title: 'ID'
            }, {
                field     : 'title'
                , title   : '标题'
                , minWidth: 100
            }, {
                field     : 'uid'
                , title   : '操作人'
                , minWidth: 100
            }, {
                field     : 'create_time'
                , title   : '操作时间'
                , minWidth: 130
            }]
            ,
        };
        baseTable.render(config);
        //分类管理
        // table.render({
        // 	elem: '#LAY-app-content-tags'
        // 	, url: setter.requestUrl + '/logs' //模拟接口
        // 	, cols: [
        // 		[{
        // 			field: 'id'
        // 			, width: 100
        // 			, title: 'ID'
        // 			, sort: true
        // 		}, {
        // 			field: 'title'
        // 			, title: '标题'
        // 			, minWidth: 100
        // 		}, {
        // 			field: 'uid'
        // 			, title: '操作人'
        // 			, minWidth: 100
        // 		}, {
        // 			field: 'create_time'
        // 			, title: '操作时间'
        // 			, minWidth: 130
        // 		}]
        // 	]
        // 	, text: '对不起，加载出现异常！'
        // });
    });
</script>